package com.service.calculate.hookArmCase;

import java.util.Date;

/**
 * 勾臂车箱体GPS定位数据ID生成器
 * @author lj
 *
 */
public class HookArmCaseIDCreator {
	
	private static final int Incremental = 1;

	private static String currentIdx;

	public static synchronized String getSignalId() {
		if (currentIdx == null) {
			currentIdx = String.valueOf(new Date().getTime()) + "0001";
		}
		currentIdx = String.valueOf(Long.parseLong(currentIdx) + Incremental);
		return currentIdx;
	}
	
}
